package com.xsy.android.compose.wandroid.ui.page.project

import android.app.Application
import com.xsy.android.compose.wandroid.logic.base.repository.BaseArticlePagingRepository
import com.xsy.android.compose.wandroid.logic.base.viewmodel.BaseViewModel

class ProjectViewModel(app: Application): BaseViewModel(app) {
    override suspend fun getData() {
        (repository as ProjectRepository).getTree(mutableTreeLiveData)
    }

    override val repository: BaseArticlePagingRepository
        get() = ProjectRepository(getApplication())
}